package ace.cmp.spring.data.jdbc.querydsl.rsql.test.core.controller;

import ace.cmp.spring.data.jdbc.querydsl.rsql.test.core.dao.repository.CasUserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author caspar
 * @date 2023/2/14 10:58
 */
@RestController
@RequiredArgsConstructor
public class UserController {
  private final CasUserRepository casUserRepository;

  @GetMapping("/test")
  public String test() {
    casUserRepository.findAll(Sort.unsorted());
    return "success";
  }
}
